using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace CPGVertragsverwaltung.ErrorHandling
{
    public partial class ExceptionWindow : Form
    {
        Exception mException;

        public ExceptionWindow()
        {
            InitializeComponent();
        }

        public Exception Exception
        {
            set
            {
                mException = value;
                txtMessage.Text = mException.Message;
                txtSource.Text = mException.Source;
                txtTrace.Text = mException.StackTrace;
            }
            get
            {
                return mException;
            }
        }
    }
}